/**
 * WMS仓库管理系统样式文件
 * 基于art-design-pro主题系统
 */

// 导入WMS子模块样式
@use './variables.scss';
@use './mixins.scss';
@use './components.scss';
@use './pages.scss';
@use './responsive.scss';

// WMS全局样式
.wms-container {
  padding: 20px;
  background: var(--el-bg-color-page);
  min-height: calc(100vh - 60px);
  
  .wms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--el-bg-color);
    border-radius: 8px;
    box-shadow: var(--el-box-shadow-light);
    
    .wms-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--el-text-color-primary);
      
      .wms-icon {
        margin-right: 8px;
        color: var(--el-color-primary);
      }
    }
    
    .wms-actions {
      display: flex;
      gap: 12px;
    }
  }
  
  .wms-content {
    background: var(--el-bg-color);
    border-radius: 8px;
    box-shadow: var(--el-box-shadow-light);
    overflow: hidden;
  }
}

// WMS表格样式
.wms-table {
  .el-table {
    border: none;
    
    .el-table__header {
      background: var(--el-fill-color-lighter);
      
      th {
        background: transparent;
        border-bottom: 1px solid var(--el-border-color-light);
        color: var(--el-text-color-regular);
        font-weight: 600;
      }
    }
    
    .el-table__body {
      tr {
        &:hover {
          background: var(--el-fill-color-light);
        }
      }
      
      td {
        border-bottom: 1px solid var(--el-border-color-lighter);
      }
    }
  }
  
  .wms-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--el-border-color-light);
    
    .wms-table-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--el-text-color-primary);
    }
    
    .wms-table-actions {
      display: flex;
      gap: 8px;
    }
  }
  
  .wms-table-search {
    padding: 16px 20px;
    background: var(--el-fill-color-blank);
    border-bottom: 1px solid var(--el-border-color-light);
    
    .el-form {
      .el-form-item {
        margin-bottom: 16px;
        
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
}

// WMS表单样式
.wms-form {
  .el-form {
    .el-form-item {
      margin-bottom: 20px;
      
      .el-form-item__label {
        font-weight: 500;
        color: var(--el-text-color-regular);
      }
      
      .el-form-item__content {
        .el-input,
        .el-select,
        .el-date-picker {
          width: 100%;
        }
      }
    }
  }
  
  .wms-form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--el-border-color-light);
    margin-top: 20px;
  }
}

// WMS对话框样式
.wms-dialog {
  .el-dialog {
    border-radius: 8px;
    
    .el-dialog__header {
      padding: 20px 20px 0;
      border-bottom: 1px solid var(--el-border-color-light);
      
      .el-dialog__title {
        font-size: 18px;
        font-weight: 600;
        color: var(--el-text-color-primary);
      }
    }
    
    .el-dialog__body {
      padding: 20px;
    }
    
    .el-dialog__footer {
      padding: 0 20px 20px;
      text-align: center;
    }
  }
}

// WMS卡片样式
.wms-card {
  background: var(--el-bg-color);
  border-radius: 8px;
  box-shadow: var(--el-box-shadow-light);
  overflow: hidden;
  
  .wms-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--el-border-color-light);
    background: var(--el-fill-color-blank);
    
    .wms-card-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--el-text-color-primary);
    }
  }
  
  .wms-card-body {
    padding: 20px;
  }
  
  .wms-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--el-border-color-light);
    background: var(--el-fill-color-blank);
  }
}

// WMS状态标签样式
.wms-status {
  &.wms-status--success {
    color: var(--el-color-success);
    background: var(--el-color-success-light-9);
    border: 1px solid var(--el-color-success-light-7);
  }
  
  &.wms-status--warning {
    color: var(--el-color-warning);
    background: var(--el-color-warning-light-9);
    border: 1px solid var(--el-color-warning-light-7);
  }
  
  &.wms-status--danger {
    color: var(--el-color-danger);
    background: var(--el-color-danger-light-9);
    border: 1px solid var(--el-color-danger-light-7);
  }
  
  &.wms-status--info {
    color: var(--el-color-info);
    background: var(--el-color-info-light-9);
    border: 1px solid var(--el-color-info-light-7);
  }
}

// WMS工具栏样式
.wms-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--el-fill-color-blank);
  border: 1px solid var(--el-border-color-light);
  border-radius: 6px;
  margin-bottom: 16px;
  
  .wms-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .wms-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

// WMS分页样式
.wms-pagination {
  display: flex;
  justify-content: center;
  padding: 20px;
  border-top: 1px solid var(--el-border-color-light);
  background: var(--el-fill-color-blank);
}

// WMS加载状态
.wms-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--el-text-color-secondary);
  
  .wms-loading-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--el-color-primary);
  }
  
  .wms-loading-text {
    font-size: 14px;
  }
}

// WMS空状态
.wms-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--el-text-color-secondary);
  
  .wms-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--el-text-color-placeholder);
  }
  
  .wms-empty-text {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .wms-empty-action {
    .el-button {
      padding: 8px 16px;
    }
  }
}
